﻿component output="false"
{
    this.Groups = createObject("component", "#session.rootDir#.objects.Groups").init();
    this.Users = createObject("component", "#session.rootDir#.objects.Users").init();
    this.ChartColors = ['191970,80,6495ed,483d8b,6a5acd,7b68ee,8470ff,0000cd,4169e1,0000ff,1e90ff,00bfff,87ceeb,87cefa,4682b4,b0c4de,add8e6,b0e0e6,afeeee,00ced1,48d1cc,40e0d0,00ffff,e0ffff,5f9ea0'];
    
    public Dashboard function init(  )
    {
        import models.*;
        this.AllGroupTypes = this.Groups.getAllGroupTypes();
        this.AllUserDepartments = this.Users.getAllUserDepartments();
        this.TotalGroupMembers = this.Groups.getGroupMemberCount();
        this.TotalUsers = this.Users.getAllADUsers().RecordCount;
        this.TotalGroups = this.Groups.getAllADGroups().RecordCount;
        this.ManagerCount = this.Groups.getManagerGroupCount();        
        return this;
    }
    

}